import axios from 'axios';
var myaxios={};//全局封装axios
myaxios.install=function(Vue){
    let  axios_obj=axios.create({  //自定义一个axios对象。设置baseURL，和请求头headers
        baseURL:'http://localhost:8888/api/private/v1/',
        headers:{Authorization:window.localStorage.getItem('token')}
    });
    Vue.prototype.$myhttp=axios_obj
};
export default myaxios;
